package com.hl233.framework.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 张振强15065206763
 * @create 2024-09-07
 */
@Configuration
public class RabbitConfig {

    @Bean
    public Queue Queue() {
        return new Queue("helloMQ");//会在mq上创建一个名为helloMQ的消息列队
    }
}
